
#include <iostream>
#include "MonitorFactory.h"

std::string MonitorFactory::DELL = "DELL";
std::string MonitorFactory::ASUS = "ASUS";
std::string MonitorFactory::LENOVO = "LENOVO";

Monitor* MonitorFactory::GetMonitor(const std::string& brand)
{
  if (utils::Stricmp(MonitorFactory::DELL, brand) != 0)
    return new DellMonitor();
  else if (utils::Stricmp(MonitorFactory::ASUS, brand) != 0)
    return new ASUSMonitor();
  else if (utils::Stricmp(MonitorFactory::LENOVO, brand) != 0)
    return new LenovoMonitor();

  std::cout << "No such monitor brand: " + brand << std::endl;
  return nullptr;
}

